<?php
	session_cache_limiter('private,must-revalide');  
    include_once("config.php");
    $tb= $_GET['tb'];	
	$hou_num= $_GET['hou_num'];	
	if($tb==1)
	{
		$query = "UPDATE $TBL_DEAL SET hou_id1='$hou_num' where type=2";
	}elseif($tb==2){
		$query = "UPDATE $TBL_DEAL SET hou_id2='$hou_num' where type=2";
	}else{
		$query = "UPDATE $TBL_DEAL SET hou_id3='$hou_num' where type=2";
	}
    $res = mysql_query($query) or die(mysql_error());
	mysql_query("update $TBL_REINFO set state=1 where hou_num='$hou_num'");
	MyNotice("賀成交設置成功", 1, "../news.php");
	exit(0);  
  
?>